<template>
  <div>
    <h3>请选择喜欢的专题</h3>
    <label v-for="(item,index) in list" :key="index">
      <input type="checkbox" :value="item" v-model="checkboxs">{{item}}
    </label> 
    <ul>
      <li v-for="(item,index) in checkboxs" :key="index">{{item}}</li>
    </ul>
    <!-- <p>{{checkboxs}}</p> -->
  </div>
</template>
 
<script>
export default {
  data() {
    return {
      list: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      checkboxs: [],
    };
  },
  methods: {},
  components: {},
};
</script>

<style scoped>
     
</style>